package com.itheima.reggie.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
/*
* 表现层封装数据的实体类
* 具有dish的所有属性
* 具有分类名称categoryName
* 增加flavors集合属性,内部封装dishFlavor
* */
public class DishDto extends Dish{
    private String categoryName;

    private List<DishFlavor> flavors =new ArrayList<>();
}
